<tr valign="top" class="<%= cycle('list-line-odd', 'list-line-even') %>">

  <td width="60%">
    <span class="list-title"><%=link_to post.title, post %></span><br/>
    <%=  h(truncate(post.body, 80)) %><br>
    Category: <%=link_to post.category_id , category_path(post.category_id) %>
    Comments: <%=post.comments_count %>
    Views: <%= post.views_count  %>
    Tags: <%= post.tag_id %>
    Views: <%= post.views_count %>
    Comments: <%= post.comments_count %>
    Created at: <%= post.created_at.to_s(:long) %>
  </td>
  <td class="list-actions">
    <br>
    <%#= link_to '编辑文章', edit_post_path(post) %><br>
    <%#= link_to '删除文章', post, :confirm => 'Are you sure?', :method => :delete %>
  </td>
</tr>

